<form name="company_form" class="ui-dialog-content" style="width: 700px;">
    <table width="100%">
        <tbody>
        <tr>
            <td align="left" class="form-cell w75 pt16" valign="top"><em class="c-red">*</em> 公司简称</td>
            <td class="pt12 w275" valign="top"><input type="text" name="name" data-ng-model="data.name" class="input-text mr5 w215" required maxlength="50">
                <p role="alert"
                   ng-show="(company_form.name.$touched || company_form.$submitted) && company_form.name.$error.required"
                   class="error ng-hide c-red lh30">
                    请填写公司简称</p>
            </td>
            <td align="left" class="form-cell w75 pt16" valign="top">&nbsp;&nbsp;公司全称</td>
            <td class="pt12 w275" valign="top"><input type="text" name="fullName" data-ng-model="data.fullName" class="input-text mr5 w215" maxlength="100"></td>
        </tr>
        <tr>
            <td align="left" class="form-cell w75 pt16" valign="top"><em class="c-red">*</em> 组织编码</td>
            <td class="pt12 w275" valign="top"><input type="text" name="code" data-ng-model="data.code" class="input-text mr5 w215" required maxlength="50">
                <p role="alert"
                   ng-show="(company_form.code.$touched || company_form.$submitted) && company_form.code.$error.required"
                   class="error ng-hide c-red lh30">
                    请填写组织编码</p></td>
            <td align="left" class="form-cell w75 pt16" valign="top"><em class="c-red">*</em> 父级组织</td>
            <td class="pt12 w275" valign="top"><input type="text" disabled name="" data-ng-model="data.parentName" class="input-text mr5 w215" value="">
                <input type="hidden" disabled name="" data-ng-model="data.parentId" class="input-text mr5 w215" ></td>
        </tr>
        <tr>
            <td align="left" class="form-cell w75 pt16" valign="top">&nbsp;&nbsp;ERP公司</td>
            <td class="pt12 w275" valign="top"><div ui-combobox data="data.erpList" text-field="name" value-field="id" ng-model="data.erpId" class="w215"></div></td>
            <td align="left" class="form-cell w75 pt16" valign="top">&nbsp;&nbsp;公司地址</td>
            <td class="pt12 w275" valign="top"><input type="text" name="companyAddr" data-ng-model="data.companyAddr" class="input-text mr5 w215" maxlength="100"></td>
        </tr>
        <tr>
            <td align="left" class="form-cell w75 pt16" valign="top">&nbsp;&nbsp;网址</td>
            <td class="pt12 w275" valign="top"><input type="text" name="webSite" data-ng-model="data.webSite" class="input-text mr5 w215"  maxlength="50" ng-pattern="/^http(s)?\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$/">
                <p role="alert"
                   ng-show="(company_form.webSite.$touched || company_form.$submitted) && company_form.webSite.$error.pattern"
                   class="error ng-hide c-red lh30">
                    格式不正确</p></td>
            <td align="left" class="form-cell w75 pt16" valign="top">&nbsp;&nbsp;传真</td>
            <td class="pt12 w275" valign="top"><input type="text" name="" data-ng-model="data.fax" class="input-text mr5 w215"  maxlength="20"></td>
        </tr>
        <tr>
            <td align="left" class="form-cell w75 pt16" valign="top">&nbsp;&nbsp;营业执照</td>
            <td class="pt12 w275" valign="top"><input type="text" name="" data-ng-model="data.charter" class="input-text mr5 w215"  maxlength="50"></td>
            <td align="left" class="form-cell w75 pt16" valign="top">&nbsp;&nbsp;法人代表</td>
            <td class="pt12 w275" valign="top"><input type="text" name="" data-ng-model="data.corporationDeputy" class="input-text mr5 w215" maxlength="20"></td>
        </tr>
        </tbody>
    </table>
    <table width="100%" class="mt10">
        <tbody>
        <tr>
            <td align="left" class="form-cell w75 pt16" valign="top">&nbsp;&nbsp;说明</td>
            <td class="pt12" colspan="3"><textarea name="" data-ng-model="data.comments" class="textarea" style="width: 562px;" maxlength="500"> </textarea></td>
        </tr>
        </tbody>
    </table>
</form>